package com.qbw.app.manager;

/**
 * @author QBW
 * @date 2019/8/29
 */
public class GeneralManager {

    private static GeneralManager sInstance;
    private RequestManager mRequestManager;
    private UserManager mUserManager;
    private UnitManager mUnitManager;
    private MapManager mMapManager;

    private GeneralManager() {
        mRequestManager = RequestManager.getInstance();
        mUserManager = UserManager.getInstance();
        mUnitManager = UnitManager.getInstance();
        mMapManager = MapManager.getInstance();
    }

    public static GeneralManager getInstance() {
        if (sInstance == null) {
            synchronized (GeneralManager.class) {
                if (sInstance == null) {
                    sInstance = new GeneralManager();
                }
            }
        }
        return sInstance;
    }

    public RequestManager getRequestManager() {
        return mRequestManager;
    }

    public UserManager getUserManager() {
        return mUserManager;
    }

    public UnitManager getUnitManager() {
        return mUnitManager;
    }

    public MapManager getMapManager() {
        return mMapManager;
    }
}
